package com.ruoyi.point.watcher.impl;

import com.ruoyi.framework.pojo.VirInfo;
import com.ruoyi.framework.point.PointTable;
import com.ruoyi.framework.watcher.IWatcher;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.List;

@Slf4j
@Component
public class SemiAutomaticWatcher implements IWatcher {

    @Autowired
    private PointTable pointTable;

    private static final String NAME_INFO = "SemiAutomatic";

    @PostConstruct
    public void init() {
        pointTable.addReadWatcher(NAME_INFO,this);
        pointTable.addWriteWatcher(NAME_INFO,this);
    }

    @Override
    public List<? extends VirInfo> selectPointInfo(String key, String parameter, Object value) {
        return null;
    }

    @Override
    public void updatePointTableValue(String key, Object jsonNode) {


    }
}
